package com.shengsiyuan.lesson7.person;
import java.util.*;
public class Environment {
	private Strategy strategy;

	/**
	 * @return the strategy
	 */


	public Environment(Strategy strategy) {
		//super();
		this.strategy = strategy;
	}

	/**
	 * @param strategy the strategy to set
	 */
	public void setStrategy(Strategy strategy) {
		this.strategy = strategy;
	}
	public void sort(List<Person> list){
		strategy.sort(list);
	}
}
